﻿using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Data;
using System.Data.SqlClient;

using System.IO;
using System.Drawing.Imaging;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Web.Core;
using CoreConfiguration = System.Web.Core.Configuration;

namespace Yuanlin.Business
{
    public class BusinessManager
    {
        private static EntityEngine entityEngine = new EntityEngine();

        #region YuanlinUser

        public static EntityList GetYuanlinUserList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }

        #endregion

        #region ProductSpecification

        public static int CreateProductSpecification(ProductSpecification productSpecification)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildAddProductSpecificationRequest(productSpecification));
            return reply.Status;
        }
        public static ProductSpecification GetProductSpecification(int productSpecificationId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetProductSpecificationRequest(productSpecificationId)).Reply as ProductSpecification;
        }
        public static EntityList GetProductSpecificationList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static int UpdateProductSpecification(ProductSpecification productSpecification)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildUpdateProductSpecificationRequest(productSpecification));
            return reply.Status;
        }
        public static void DeleteProductSpecification(int productSpecificationId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteProductSpecificationRequest(productSpecificationId));
        }

        #endregion

        #region News

        public static void CreateNews(News news)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildAddNewsRequest(news));
        }
        public static News GetNews(int newsId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetNewsRequest(newsId)).Reply as News;
        }
        public static EntityList GetNewsList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static void UpdateNews(News news)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildUpdateNewsRequest(news));
        }
        public static void DeleteNews(int newsId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteNewsRequest(newsId));
        }

        #endregion

        #region SpecialNews

        public static void CreateSpecialNews(SpecialNews entity)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildAddSpecialNewsRequest(entity));
        }
        public static SpecialNews GetSpecialNews(int entityId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetSpecialNewsRequest(entityId)).Reply as SpecialNews;
        }
        public static EntityList GetSpecialNewsList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static void UpdateSpecialNews(SpecialNews entity)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildUpdateSpecialNewsRequest(entity));
        }
        public static void DeleteSpecialNews(int entityId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteSpecialNewsRequest(entityId));
        }

        #endregion

        #region ServiceTerms

        public static int CreateServiceTerms(ServiceTerms serviceTerms)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildAddServiceTermsRequest(serviceTerms));
            return reply.Status;
        }
        public static ServiceTerms GetServiceTerms(int serviceTermsId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetServiceTermsRequest(serviceTermsId)).Reply as ServiceTerms;
        }
        public static EntityList GetServiceTermsList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static int UpdateServiceTerms(ServiceTerms serviceTerms)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildUpdateServiceTermsRequest(serviceTerms));
            return reply.Status;
        }
        public static void DeleteServiceTerms(int serviceTermsId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteServiceTermsRequest(serviceTermsId));
        }

        #endregion

        #region CompanyFriendCategory

        public static int CreateCompanyFriendCategory(CompanyFriendCategory companyFriendCategory)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildAddCompanyFriendCategoryRequest(companyFriendCategory));
            return reply.Status;
        }
        public static CompanyFriendCategory GetCompanyFriendCategory(int companyFriendCategoryId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetCompanyFriendCategoryRequest(companyFriendCategoryId)).Reply as CompanyFriendCategory;
        }
        public static EntityList GetCompanyFriendCategoryList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static int UpdateCompanyFriendCategory(CompanyFriendCategory companyFriendCategory)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildUpdateCompanyFriendCategoryRequest(companyFriendCategory));
            return reply.Status;
        }
        public static void DeleteCompanyFriendCategory(int companyFriendCategoryId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteCompanyFriendCategoryRequest(companyFriendCategoryId));
        }

        #endregion

        #region CompanyProduct

        public static void CreateCompanyProduct(CompanyProduct companyProduct)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildAddCompanyProductRequest(companyProduct));
        }
        public static CompanyProduct GetCompanyProduct(int companyProductId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetCompanyProductRequest(companyProductId)).Reply as CompanyProduct;
        }
        public static EntityList GetCompanyProductList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static void UpdateCompanyProduct(CompanyProduct companyProduct)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildUpdateCompanyProductRequest(companyProduct));
        }
        public static void DeleteCompanyProduct(int companyProductId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteCompanyProductRequest(companyProductId));
        }

        #endregion

        #region CompanyBrand

        public static int CreateCompanyBrand(CompanyBrand companyBrand)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildAddCompanyBrandRequest(companyBrand));
            return reply.Status;
        }
        public static CompanyBrand GetCompanyBrand(int companyBrandId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetCompanyBrandRequest(companyBrandId)).Reply as CompanyBrand;
        }
        public static EntityList GetCompanyBrandList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static int UpdateCompanyBrand(CompanyBrand companyBrand)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildUpdateCompanyBrandRequest(companyBrand));
            return reply.Status;
        }
        public static void DeleteCompanyBrand(int companyBrandId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteCompanyBrandRequest(companyBrandId));
        }

        #endregion

        #region BusinessInfo

        public static void CreateBusinessInfo(BusinessInfo businessInfo)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildAddBusinessInfoRequest(businessInfo));
        }
        public static BusinessInfo GetBusinessInfo(int businessInfoId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetBusinessInfoRequest(businessInfoId)).Reply as BusinessInfo;
        }
        public static EntityList GetBusinessInfoList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static void UpdateBusinessInfo(BusinessInfo businessInfo)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildUpdateBusinessInfoRequest(businessInfo));
        }
        public static void DeleteBusinessInfo(int businessInfoId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteBusinessInfoRequest(businessInfoId));
        }

        #endregion

        #region ZhongzhiMethod

        public static int CreateZhongzhiMethod(ZhongzhiMethod zhongzhiMethod)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildAddZhongzhiMethodRequest(zhongzhiMethod));
            return reply.Status;
        }
        public static ZhongzhiMethod GetZhongzhiMethod(int zhongzhiMethodId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetZhongzhiMethodRequest(zhongzhiMethodId)).Reply as ZhongzhiMethod;
        }
        public static EntityList GetZhongzhiMethodList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static int UpdateZhongzhiMethod(ZhongzhiMethod zhongzhiMethod)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildUpdateZhongzhiMethodRequest(zhongzhiMethod));
            return reply.Status;
        }
        public static int DeleteZhongzhiMethod(int zhongzhiMethodId)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildDeleteZhongzhiMethodRequest(zhongzhiMethodId));
            return reply.Status;
        }

        #endregion

        #region CompanyTechnology

        public static int CreateCompanyTechnology(CompanyTechnology companyTechnology)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildAddCompanyTechnologyRequest(companyTechnology));
            return reply.Status;
        }
        public static CompanyTechnology GetCompanyTechnology(int companyTechnologyId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetCompanyTechnologyRequest(companyTechnologyId)).Reply as CompanyTechnology;
        }
        public static EntityList GetCompanyTechnologyList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static int UpdateCompanyTechnology(CompanyTechnology companyTechnology)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildUpdateCompanyTechnologyRequest(companyTechnology));
            return reply.Status;
        }
        public static void DeleteCompanyTechnology(int companyTechnologyId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteCompanyTechnologyRequest(companyTechnologyId));
        }

        #endregion

        #region CompanyShop

        public static void CreateCompanyShop(CompanyShop companyShop)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildAddCompanyShopRequest(companyShop));
        }
        public static CompanyShop GetCompanyShop(int companyShopId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetCompanyShopRequest(companyShopId)).Reply as CompanyShop;
        }
        public static EntityList GetCompanyShopList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static void UpdateCompanyShop(CompanyShop companyShop)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildUpdateCompanyShopRequest(companyShop));
        }
        public static void DeleteCompanyShop(int companyShopId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteCompanyShopRequest(companyShopId));
        }

        #endregion

        #region ZiCaiGuiGeCategory

        public static int CreateZiCaiGuiGeCategory(ZiCaiGuiGeCategory ziCaiGuiGeCategory)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildAddZiCaiGuiGeCategoryRequest(ziCaiGuiGeCategory));
            return reply.Status;
        }
        public static ZiCaiGuiGeCategory GetZiCaiGuiGeCategory(int ziCaiGuiGeCategoryId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetZiCaiGuiGeCategoryRequest(ziCaiGuiGeCategoryId)).Reply as ZiCaiGuiGeCategory;
        }
        public static EntityList GetZiCaiGuiGeCategoryList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static int UpdateZiCaiGuiGeCategory(ZiCaiGuiGeCategory ziCaiGuiGeCategory)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildUpdateZiCaiGuiGeCategoryRequest(ziCaiGuiGeCategory));
            return reply.Status;
        }
        public static int DeleteZiCaiGuiGeCategory(int ziCaiGuiGeCategoryId)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildDeleteZiCaiGuiGeCategoryRequest(ziCaiGuiGeCategoryId));
            return reply.Status;
        }

        #endregion

        #region ContentHtml

        public static int CreateContentHtml(ContentHtml contentHtml)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildAddContentHtmlRequest(contentHtml));
            return reply.Status;
        }
        public static ContentHtml GetContentHtml(int contentHtmlId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetContentHtmlRequest(contentHtmlId)).Reply as ContentHtml;
        }
        public static EntityList GetContentHtmlList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static int UpdateContentHtml(ContentHtml contentHtml)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildUpdateContentHtmlRequest(contentHtml));
            return reply.Status;
        }
        public static void DeleteContentHtml(int contentHtmlId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteContentHtmlRequest(contentHtmlId));
        }

        #endregion

        #region CompanyMessage

        public static void CreateCompanyMessage(CompanyMessage companyMessage)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildAddCompanyMessageRequest(companyMessage));
        }
        public static CompanyMessage GetCompanyMessage(int companyMessageId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetCompanyMessageRequest(companyMessageId)).Reply as CompanyMessage;
        }
        public static EntityList GetCompanyMessageList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static void UpdateCompanyMessage(CompanyMessage companyMessage)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildUpdateCompanyMessageRequest(companyMessage));
        }
        public static void DeleteCompanyMessage(int companyMessageId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteCompanyMessageRequest(companyMessageId));
        }

        #endregion

        #region MiaomuCategory

        public static int CreateMiaomuCategory(MiaomuCategory miaomuCategory)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildAddMiaomuCategoryRequest(miaomuCategory));
            return reply.Status;
        }
        public static MiaomuCategory GetMiaomuCategory(int miaomuCategoryId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetMiaomuCategoryRequest(miaomuCategoryId)).Reply as MiaomuCategory;
        }
        public static EntityList GetMiaomuCategoryList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static int UpdateMiaomuCategory(MiaomuCategory miaomuCategory)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildUpdateMiaomuCategoryRequest(miaomuCategory));
            return reply.Status;
        }
        public static int DeleteMiaomuCategory(int miaomuCategoryId)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildDeleteMiaomuCategoryRequest(miaomuCategoryId));
            return reply.Status;
        }

        #endregion

        #region FriendLink

        public static int CreateFriendLink(FriendLink friendLink)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildAddFriendLinkRequest(friendLink));
            return reply.Status;
        }
        public static FriendLink GetFriendLink(int friendLinkId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetFriendLinkRequest(friendLinkId)).Reply as FriendLink;
        }
        public static EntityList GetFriendLinkList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static int UpdateFriendLink(FriendLink friendLink)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildUpdateFriendLinkRequest(friendLink));
            return reply.Status;
        }
        public static void DeleteFriendLink(int friendLinkId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteFriendLinkRequest(friendLinkId));
        }

        #endregion

        #region CompanyProject

        public static int CreateCompanyProject(CompanyProject companyProject)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildAddCompanyProjectRequest(companyProject));
            return reply.Status;
        }
        public static CompanyProject GetCompanyProject(int companyProjectId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetCompanyProjectRequest(companyProjectId)).Reply as CompanyProject;
        }
        public static EntityList GetCompanyProjectList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static int UpdateCompanyProject(CompanyProject companyProject)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildUpdateCompanyProjectRequest(companyProject));
            return reply.Status;
        }
        public static void DeleteCompanyProject(int companyProjectId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteCompanyProjectRequest(companyProjectId));
        }

        #endregion

        #region MemberService

        public static int CreateMemberService(MemberService memberService)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildAddMemberServiceRequest(memberService));
            return reply.Status;
        }
        public static MemberService GetMemberService(int memberServiceId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetMemberServiceRequest(memberServiceId)).Reply as MemberService;
        }
        public static EntityList GetMemberServiceList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static int UpdateMemberService(MemberService memberService)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildUpdateMemberServiceRequest(memberService));
            return reply.Status;
        }
        public static void DeleteMemberService(int memberServiceId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteMemberServiceRequest(memberServiceId));
        }

        #endregion

        #region RecommendedUserNumber

        public static int CreateRecommendedUserNumber(RecommendedUserNumber recommendedUserNumber)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildAddRecommendedUserNumberRequest(recommendedUserNumber));
            return reply.Status;        
        }
        public static RecommendedUserNumber GetRecommendedUserNumber(int recommendedUserNumberId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetRecommendedUserNumberRequest(recommendedUserNumberId)).Reply as RecommendedUserNumber;
        }
        public static EntityList GetRecommendedUserNumberList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static int UpdateRecommendedUserNumber(RecommendedUserNumber recommendedUserNumber)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildUpdateRecommendedUserNumberRequest(recommendedUserNumber));
            return reply.Status;
        }
        public static void DeleteRecommendedUserNumber(int recommendedUserNumberId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteRecommendedUserNumberRequest(recommendedUserNumberId));
        }

        #endregion

        #region CompanyAlbum

        public static int CreateCompanyAlbum(CompanyAlbum companyAlbum)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildAddCompanyAlbumRequest(companyAlbum));
            return reply.Status;
        }
        public static CompanyAlbum GetCompanyAlbum(int companyAlbumId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetCompanyAlbumRequest(companyAlbumId)).Reply as CompanyAlbum;
        }
        public static EntityList GetCompanyAlbumList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static int UpdateCompanyAlbum(CompanyAlbum companyAlbum)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildUpdateCompanyAlbumRequest(companyAlbum));
            return reply.Status;
        }
        public static void DeleteCompanyAlbum(int companyAlbumId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteCompanyAlbumRequest(companyAlbumId));
        }

        #endregion

        #region AnonymousVisitCompany

        public static void CreateAnonymousVisitCompany(AnonymousVisitCompany anonymousVisitCompany)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildAddAnonymousVisitCompanyRequest(anonymousVisitCompany));
        }
        public static AnonymousVisitCompany GetAnonymousVisitCompany(int anonymousVisitCompanyId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetAnonymousVisitCompanyRequest(anonymousVisitCompanyId)).Reply as AnonymousVisitCompany;
        }
        public static EntityList GetAnonymousVisitCompanyList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static void UpdateAnonymousVisitCompany(AnonymousVisitCompany anonymousVisitCompany)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildUpdateAnonymousVisitCompanyRequest(anonymousVisitCompany));
        }
        public static void DeleteAnonymousVisitCompany(int anonymousVisitCompanyId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteAnonymousVisitCompanyRequest(anonymousVisitCompanyId));
        }

        #endregion

        #region CompanyPartnerCategory

        public static int CreateCompanyPartnerCategory(CompanyPartnerCategory companyPartnerCategory)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildAddCompanyPartnerCategoryRequest(companyPartnerCategory));
            return reply.Status;
        }
        public static CompanyPartnerCategory GetCompanyPartnerCategory(int companyPartnerCategoryId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetCompanyPartnerCategoryRequest(companyPartnerCategoryId)).Reply as CompanyPartnerCategory;
        }
        public static EntityList GetCompanyPartnerCategoryList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static int UpdateCompanyPartnerCategory(CompanyPartnerCategory companyPartnerCategory)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildUpdateCompanyPartnerCategoryRequest(companyPartnerCategory));
            return reply.Status;
        }
        public static void DeleteCompanyPartnerCategory(int companyPartnerCategoryId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteCompanyPartnerCategoryRequest(companyPartnerCategoryId));
        }

        #endregion

        #region Product

        public static int CreateProduct(Product product)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildAddProductRequest(product));
            return reply.Status;
        }
        public static Product GetProduct(int productId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetProductRequest(productId)).Reply as Product;
        }
        public static EntityList GetProductList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static void UpdateProduct(Product product)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildUpdateProductRequest(product));
        }
        public static void DeleteProduct(int productId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteProductRequest(productId));
        }

        #endregion

        #region SeedlingAttribute

        public static int CreateSeedlingAttribute(SeedlingAttribute seedlingAttribute)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildAddSeedlingAttributeRequest(seedlingAttribute));
            return reply.Status;
        }
        public static SeedlingAttribute GetSeedlingAttribute(int seedlingAttributeId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetSeedlingAttributeRequest(seedlingAttributeId)).Reply as SeedlingAttribute;
        }
        public static EntityList GetSeedlingAttributeList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static int UpdateSeedlingAttribute(SeedlingAttribute seedlingAttribute)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildUpdateSeedlingAttributeRequest(seedlingAttribute));
            return reply.Status;
        }
        public static int DeleteSeedlingAttribute(int seedlingAttributeId)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildDeleteSeedlingAttributeRequest(seedlingAttributeId));
            return reply.Status;
        }

        #endregion

        #region CompanyNews

        public static int CreateCompanyNews(CompanyNews companyNews)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildAddCompanyNewsRequest(companyNews));
            return reply.Status;
        }
        public static CompanyNews GetCompanyNews(int companyNewsId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetCompanyNewsRequest(companyNewsId)).Reply as CompanyNews;
        }
        public static EntityList GetCompanyNewsList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static int UpdateCompanyNews(CompanyNews companyNews)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildUpdateCompanyNewsRequest(companyNews));
            return reply.Status;
        }
        public static void DeleteCompanyNews(int companyNewsId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteCompanyNewsRequest(companyNewsId));
        }

        #endregion

        #region SensitiveKeyword

        public static int CreateSensitiveKeyword(SensitiveKeyword sensitiveKeyword)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildAddSensitiveKeywordRequest(sensitiveKeyword));
            return reply.Status;
        }
        public static SensitiveKeyword GetSensitiveKeyword(int sensitiveKeywordId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetSensitiveKeywordRequest(sensitiveKeywordId)).Reply as SensitiveKeyword;
        }
        public static EntityList GetSensitiveKeywordList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static int UpdateSensitiveKeyword(SensitiveKeyword sensitiveKeyword)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildUpdateSensitiveKeywordRequest(sensitiveKeyword));
            return reply.Status;
        }
        public static void DeleteSensitiveKeyword(int sensitiveKeywordId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteSensitiveKeywordRequest(sensitiveKeywordId));
        }

        #endregion

        #region VisitCompany

        public static void CreateVisitCompany(VisitCompany visitCompany)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildAddVisitCompanyRequest(visitCompany));
        }
        public static VisitCompany GetVisitCompany(int visitCompanyId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetVisitCompanyRequest(visitCompanyId)).Reply as VisitCompany;
        }
        public static EntityList GetVisitCompanyList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static void UpdateVisitCompany(VisitCompany visitCompany)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildUpdateVisitCompanyRequest(visitCompany));
        }
        public static void DeleteVisitCompany(int visitCompanyId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteVisitCompanyRequest(visitCompanyId));
        }

        #endregion

        #region Comment

        public static void CreateComment(Comment comment)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildAddCommentRequest(comment));
        }
        public static Comment GetComment(int commentId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetCommentRequest(commentId)).Reply as Comment;
        }
        public static EntityList GetCommentList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static void UpdateComment(Comment comment)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildUpdateCommentRequest(comment));
        }
        public static void DeleteComment(int commentId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteCommentRequest(commentId));
        }

        #endregion

        #region ZiCaiGuiGe

        public static int CreateZiCaiGuiGe(ZiCaiGuiGe ziCaiGuiGe)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildAddZiCaiGuiGeRequest(ziCaiGuiGe));
            return reply.Status;
        }
        public static ZiCaiGuiGe GetZiCaiGuiGe(int ziCaiGuiGeId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetZiCaiGuiGeRequest(ziCaiGuiGeId)).Reply as ZiCaiGuiGe;
        }
        public static EntityList GetZiCaiGuiGeList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static int UpdateZiCaiGuiGe(ZiCaiGuiGe ziCaiGuiGe)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildUpdateZiCaiGuiGeRequest(ziCaiGuiGe));
            return reply.Status;
        }
        public static void DeleteZiCaiGuiGe(int ziCaiGuiGeId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteZiCaiGuiGeRequest(ziCaiGuiGeId));
        }

        #endregion

        #region HelpCenter

        public static int CreateHelpCenter(HelpCenter helpCenter)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildAddHelpCenterRequest(helpCenter));
            return reply.Status;
        }
        public static HelpCenter GetHelpCenter(int helpCenterId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetHelpCenterRequest(helpCenterId)).Reply as HelpCenter;
        }
        public static EntityList GetHelpCenterList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static int UpdateHelpCenter(HelpCenter helpCenter)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildUpdateHelpCenterRequest(helpCenter));
            return reply.Status;
        }
        public static void DeleteHelpCenter(int helpCenterId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteHelpCenterRequest(helpCenterId));
        }

        #endregion

        #region NewsCategory

        public static int CreateNewsCategory(NewsCategory newsCategory)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildAddNewsCategoryRequest(newsCategory));
            return reply.Status;
        }
        public static NewsCategory GetNewsCategory(int newsCategoryId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetNewsCategoryRequest(newsCategoryId)).Reply as NewsCategory;
        }
        public static EntityList GetNewsCategoryList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static int UpdateNewsCategory(NewsCategory newsCategory)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildUpdateNewsCategoryRequest(newsCategory));
            return reply.Status;
        }
        public static int DeleteNewsCategory(int newsCategoryId)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildDeleteNewsCategoryRequest(newsCategoryId));
            return reply.Status;
        }

        #endregion

        #region ZiCai

        public static int CreateZiCai(ZiCai ziCai)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildAddZiCaiRequest(ziCai));
            return reply.Status;
        }
        public static ZiCai GetZiCai(int ziCaiId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetZiCaiRequest(ziCaiId)).Reply as ZiCai;
        }
        public static EntityList GetZiCaiList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static int UpdateZiCai(ZiCai ziCai)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildUpdateZiCaiRequest(ziCai));
            return reply.Status;
        }
        public static int DeleteZiCai(int ziCaiId)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildDeleteZiCaiRequest(ziCaiId));
            return reply.Status;
        }

        #endregion

        #region CompanyType

        public static int CreateCompanyType(CompanyType companyType)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildAddCompanyTypeRequest(companyType));
            return reply.Status;
        }
        public static CompanyType GetCompanyType(int companyTypeId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetCompanyTypeRequest(companyTypeId)).Reply as CompanyType;
        }
        public static EntityList GetCompanyTypeList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static int UpdateCompanyType(CompanyType companyType)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildUpdateCompanyTypeRequest(companyType));
            return reply.Status;
        }
        public static int DeleteCompanyType(int companyTypeId)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildDeleteCompanyTypeRequest(companyTypeId));
            return reply.Status;
        }

        #endregion

        #region CompanyProjectPerformance

        public static int CreateCompanyProjectPerformance(CompanyProjectPerformance companyProjectPerformance)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildAddCompanyProjectPerformanceRequest(companyProjectPerformance));
            return reply.Status;
        }
        public static CompanyProjectPerformance GetCompanyProjectPerformance(int companyProjectPerformanceId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetCompanyProjectPerformanceRequest(companyProjectPerformanceId)).Reply as CompanyProjectPerformance;
        }
        public static EntityList GetCompanyProjectPerformanceList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static int UpdateCompanyProjectPerformance(CompanyProjectPerformance companyProjectPerformance)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildUpdateCompanyProjectPerformanceRequest(companyProjectPerformance));
            return reply.Status;
        }
        public static void DeleteCompanyProjectPerformance(int companyProjectPerformanceId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteCompanyProjectPerformanceRequest(companyProjectPerformanceId));
        }

        #endregion

        #region CompanyGreenNum

        public static void CreateCompanyGreenNum(CompanyGreenNum companyGreenNum)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildAddCompanyGreenNumRequest(companyGreenNum));
        }
        public static CompanyGreenNum GetCompanyGreenNum(int companyGreenNumId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetCompanyGreenNumRequest(companyGreenNumId)).Reply as CompanyGreenNum;
        }
        public static EntityList GetCompanyGreenNumList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static void UpdateCompanyGreenNum(CompanyGreenNum companyGreenNum)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildUpdateCompanyGreenNumRequest(companyGreenNum));
        }
        public static void DeleteCompanyGreenNum(int companyGreenNumId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteCompanyGreenNumRequest(companyGreenNumId));
        }

        #endregion

        #region ProductCategory

        public static int CreateProductCategory(ProductCategory productCategory)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildAddProductCategoryRequest(productCategory));
            return reply.Status;
        }
        public static ProductCategory GetProductCategory(int productCategoryId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetProductCategoryRequest(productCategoryId)).Reply as ProductCategory;
        }
        public static EntityList GetProductCategoryList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static int UpdateProductCategory(ProductCategory productCategory)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildUpdateProductCategoryRequest(productCategory));
            return reply.Status;
        }
        public static int DeleteProductCategory(int productCategoryId)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildDeleteProductCategoryRequest(productCategoryId));
            return reply.Status;
        }

        #endregion

        #region CompanyVisitorInfo

        public static void CreateCompanyVisitorInfo(CompanyVisitorInfo companyVisitorInfo)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildAddCompanyVisitorInfoRequest(companyVisitorInfo));
        }
        public static CompanyVisitorInfo GetCompanyVisitorInfo(int companyVisitorInfoId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetCompanyVisitorInfoRequest(companyVisitorInfoId)).Reply as CompanyVisitorInfo;
        }
        public static EntityList GetCompanyVisitorInfoList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static void UpdateCompanyVisitorInfo(CompanyVisitorInfo companyVisitorInfo)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildUpdateCompanyVisitorInfoRequest(companyVisitorInfo));
        }
        public static void DeleteCompanyVisitorInfo(int companyVisitorInfoId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteCompanyVisitorInfoRequest(companyVisitorInfoId));
        }

        #endregion

        #region Area

        public static int CreateArea(Area area)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildAddAreaRequest(area));
            return reply.Status;
        }
        public static Area GetArea(int areaId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetAreaRequest(areaId)).Reply as Area;
        }
        public static EntityList GetAreaList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static int UpdateArea(Area area)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildUpdateAreaRequest(area));
            return reply.Status;
        }
        public static int DeleteArea(int areaId)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildDeleteAreaRequest(areaId));
            return reply.Status;
        }

        #endregion

        #region HuaMuFeedback

        public static void CreateHuaMuFeedback(HuaMuFeedback huaMuFeedback)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildAddHuaMuFeedbackRequest(huaMuFeedback));
        }
        public static HuaMuFeedback GetHuaMuFeedback(int huaMuFeedbackId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetHuaMuFeedbackRequest(huaMuFeedbackId)).Reply as HuaMuFeedback;
        }
        public static EntityList GetHuaMuFeedbackList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static void UpdateHuaMuFeedback(HuaMuFeedback huaMuFeedback)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildUpdateHuaMuFeedbackRequest(huaMuFeedback));
        }
        public static void DeleteHuaMuFeedback(int huaMuFeedbackId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteHuaMuFeedbackRequest(huaMuFeedbackId));
        }

        #endregion

        #region ZiCaiInfo

        public static void CreateZiCaiInfo(ZiCaiInfo ziCaiInfo)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildAddZiCaiInfoRequest(ziCaiInfo));
        }
        public static ZiCaiInfo GetZiCaiInfo(int ziCaiInfoId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetZiCaiInfoRequest(ziCaiInfoId)).Reply as ZiCaiInfo;
        }
        public static EntityList GetZiCaiInfoList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static void UpdateZiCaiInfo(ZiCaiInfo ziCaiInfo)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildUpdateZiCaiInfoRequest(ziCaiInfo));
        }
        public static void DeleteZiCaiInfo(int ziCaiInfoId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteZiCaiInfoRequest(ziCaiInfoId));
        }

        #endregion

        #region CompanyCard

        public static int CreateCompanyCard(CompanyCard companyCard)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildAddCompanyCardRequest(companyCard));
            return reply.Status;
        }
        public static CompanyCard GetCompanyCard(int companyCardId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetCompanyCardRequest(companyCardId)).Reply as CompanyCard;
        }
        public static EntityList GetCompanyCardList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static int UpdateCompanyCard(CompanyCard companyCard)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildUpdateCompanyCardRequest(companyCard));
            return reply.Status;
        }
        public static void DeleteCompanyCard(int companyCardId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteCompanyCardRequest(companyCardId));
        }

        #endregion

        #region ContentHtmlCategory

        public static int CreateContentHtmlCategory(ContentHtmlCategory contentHtmlCategory)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildAddContentHtmlCategoryRequest(contentHtmlCategory));
            return reply.Status;
        }
        public static ContentHtmlCategory GetContentHtmlCategory(int contentHtmlCategoryId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetContentHtmlCategoryRequest(contentHtmlCategoryId)).Reply as ContentHtmlCategory;
        }
        public static EntityList GetContentHtmlCategoryList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static int UpdateContentHtmlCategory(ContentHtmlCategory contentHtmlCategory)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildUpdateContentHtmlCategoryRequest(contentHtmlCategory));
            return reply.Status;
        }
        public static void DeleteContentHtmlCategory(int contentHtmlCategoryId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteContentHtmlCategoryRequest(contentHtmlCategoryId));
        }

        #endregion

        #region CompanyPartner

        public static int CreateCompanyPartner(CompanyPartner companyPartner)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildAddCompanyPartnerRequest(companyPartner));
            return reply.Status;
        }
        public static CompanyPartner GetCompanyPartner(int companyPartnerId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetCompanyPartnerRequest(companyPartnerId)).Reply as CompanyPartner;
        }
        public static EntityList GetCompanyPartnerList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static int UpdateCompanyPartner(CompanyPartner companyPartner)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildUpdateCompanyPartnerRequest(companyPartner));
            return reply.Status;
        }
        public static void DeleteCompanyPartner(int companyPartnerId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteCompanyPartnerRequest(companyPartnerId));
        }

        #endregion

        #region FriendLinkCategory

        public static int CreateFriendLinkCategory(FriendLinkCategory friendLinkCategory)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildAddFriendLinkCategoryRequest(friendLinkCategory));
            return reply.Status;
        }
        public static FriendLinkCategory GetFriendLinkCategory(int friendLinkCategoryId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetFriendLinkCategoryRequest(friendLinkCategoryId)).Reply as FriendLinkCategory;
        }
        public static EntityList GetFriendLinkCategoryList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static int UpdateFriendLinkCategory(FriendLinkCategory friendLinkCategory)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildUpdateFriendLinkCategoryRequest(friendLinkCategory));
            return reply.Status;
        }
        public static void DeleteFriendLinkCategory(int friendLinkCategoryId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteFriendLinkCategoryRequest(friendLinkCategoryId));
        }

        #endregion

        #region CompanyRecruit

        public static int CreateCompanyRecruit(CompanyRecruit companyRecruit)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildAddCompanyRecruitRequest(companyRecruit));
            return reply.Status;
        }
        public static CompanyRecruit GetCompanyRecruit(int companyRecruitId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetCompanyRecruitRequest(companyRecruitId)).Reply as CompanyRecruit;
        }
        public static EntityList GetCompanyRecruitList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static int UpdateCompanyRecruit(CompanyRecruit companyRecruit)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildUpdateCompanyRecruitRequest(companyRecruit));
            return reply.Status;
        }
        public static void DeleteCompanyRecruit(int companyRecruitId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteCompanyRecruitRequest(companyRecruitId));
        }

        #endregion

        #region CompanyCertificate

        public static int CreateCompanyCertificate(CompanyCertificate companyCertificate)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildAddCompanyCertificateRequest(companyCertificate));
            return reply.Status;
        }
        public static CompanyCertificate GetCompanyCertificate(int companyCertificateId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetCompanyCertificateRequest(companyCertificateId)).Reply as CompanyCertificate;
        }
        public static EntityList GetCompanyCertificateList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static int UpdateCompanyCertificate(CompanyCertificate companyCertificate)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildUpdateCompanyCertificateRequest(companyCertificate));
            return reply.Status;
        }
        public static void DeleteCompanyCertificate(int companyCertificateId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteCompanyCertificateRequest(companyCertificateId));
        }

        #endregion

        #region CompanyFriend

        public static int CreateCompanyFriend(CompanyFriend companyFriend)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildAddCompanyFriendRequest(companyFriend));
            return reply.Status;
        }
        public static CompanyFriend GetCompanyFriend(int companyFriendId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetCompanyFriendRequest(companyFriendId)).Reply as CompanyFriend;
        }
        public static EntityList GetCompanyFriendList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static int UpdateCompanyFriend(CompanyFriend companyFriend)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildUpdateCompanyFriendRequest(companyFriend));
            return reply.Status;
        }
        public static void DeleteCompanyFriend(int companyFriendId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteCompanyFriendRequest(companyFriendId));
        }

        #endregion

        #region HuamuAndCategoryRelation

        public static void CreateHuamuAndCategoryRelation(HuamuAndCategoryRelation huamuAndCategoryRelation)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildAddHuamuAndCategoryRelationRequest(huamuAndCategoryRelation));
        }
        public static EntityList GetHuamuAndCategoryRelationList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static void UpdateHuamuAndCategoryRelation(HuamuAndCategoryRelation huamuAndCategoryRelation)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildUpdateHuamuAndCategoryRelationRequest(huamuAndCategoryRelation));
        }
        public static void DeleteHuamuAndCategoryRelation(int huamuId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteHuamuAndCategoryRelationRequest(huamuId));
        }

        #endregion

        #region SiteHuamuAndAppCategoryRelation

        public static void CreateSiteHuamuAndAppCategoryRelation(SiteHuamuAndAppCategoryRelation siteHuamuAndAppCategoryRelation)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildAddSiteHuamuAndAppCategoryRelationRequest(siteHuamuAndAppCategoryRelation));
        }
        public static EntityList GetSiteHuamuAndAppCategoryRelationList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static void UpdateSiteHuamuAndAppCategoryRelation(SiteHuamuAndAppCategoryRelation siteHuamuAndAppCategoryRelation)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildUpdateSiteHuamuAndAppCategoryRelationRequest(siteHuamuAndAppCategoryRelation));
        }
        public static void DeleteSiteHuamuAndAppCategoryRelation(int huamuId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteSiteHuamuAndAppCategoryRelationRequest(huamuId));
        }

        #endregion

        #region 种植版块

        #region PlantSection_Post

        public static void CreatePlantSection_Post(PlantSection_Post plantSection_Post)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildAddPlantSection_PostRequest(plantSection_Post));
        }
        public static PlantSection_Post GetPlantSection_Post(int plantSection_PostId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetPlantSection_PostRequest(plantSection_PostId)).Reply as PlantSection_Post;
        }
        public static EntityList GetPlantSection_PostList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static void UpdatePlantSection_Post(PlantSection_Post plantSection_Post)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildUpdatePlantSection_PostRequest(plantSection_Post));
        }
        public static void DeletePlantSection_Post(int plantSection_PostId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeletePlantSection_PostRequest(plantSection_PostId));
        }

        #endregion

        #region PlantSection_PostPicture

        public static void CreatePlantSection_PostPicture(PlantSection_PostPicture plantSection_PostPicture)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildAddPlantSection_PostPictureRequest(plantSection_PostPicture));
        }
        public static PlantSection_PostPicture GetPlantSection_PostPicture(int plantSection_PostPictureId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetPlantSection_PostPictureRequest(plantSection_PostPictureId)).Reply as PlantSection_PostPicture;
        }
        public static EntityList GetPlantSection_PostPictureList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static void UpdatePlantSection_PostPicture(PlantSection_PostPicture plantSection_PostPicture)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildUpdatePlantSection_PostPictureRequest(plantSection_PostPicture));
        }
        public static void DeletePlantSection_PostPicture(int plantSection_PostPictureId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeletePlantSection_PostPictureRequest(plantSection_PostPictureId));
        }

        #endregion

        #region PlantSection_Section

        public static int CreatePlantSection_Section(PlantSection_Section plantSection_Section)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildAddPlantSection_SectionRequest(plantSection_Section));
            return reply.Status;
        }
        public static PlantSection_Section GetPlantSection_Section(int plantSection_SectionId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetPlantSection_SectionRequest(plantSection_SectionId)).Reply as PlantSection_Section;
        }
        public static EntityList GetPlantSection_SectionList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static int UpdatePlantSection_Section(PlantSection_Section plantSection_Section)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildUpdatePlantSection_SectionRequest(plantSection_Section));
            return reply.Status;
        }
        public static void DeletePlantSection_Section(int plantSection_SectionId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeletePlantSection_SectionRequest(plantSection_SectionId));
        }

        #endregion

        #region PlantSection_Thread

        public static void CreatePlantSection_Thread(PlantSection_Thread plantSection_Thread)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildAddPlantSection_ThreadRequest(plantSection_Thread));
        }
        public static PlantSection_Thread GetPlantSection_Thread(int plantSection_ThreadId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetPlantSection_ThreadRequest(plantSection_ThreadId)).Reply as PlantSection_Thread;
        }
        public static EntityList GetPlantSection_ThreadList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static void UpdatePlantSection_Thread(PlantSection_Thread plantSection_Thread)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildUpdatePlantSection_ThreadRequest(plantSection_Thread));
        }
        public static void DeletePlantSection_Thread(int plantSection_ThreadId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeletePlantSection_ThreadRequest(plantSection_ThreadId));
        }

        #endregion

        #region PlantSection_ThreadPicture

        public static void CreatePlantSection_ThreadPicture(PlantSection_ThreadPicture plantSection_ThreadPicture)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildAddPlantSection_ThreadPictureRequest(plantSection_ThreadPicture));
        }
        public static PlantSection_ThreadPicture GetPlantSection_ThreadPicture(int plantSection_ThreadPictureId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetPlantSection_ThreadPictureRequest(plantSection_ThreadPictureId)).Reply as PlantSection_ThreadPicture;
        }
        public static EntityList GetPlantSection_ThreadPictureList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static void UpdatePlantSection_ThreadPicture(PlantSection_ThreadPicture plantSection_ThreadPicture)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildUpdatePlantSection_ThreadPictureRequest(plantSection_ThreadPicture));
        }
        public static void DeletePlantSection_ThreadPicture(int plantSection_ThreadPictureId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeletePlantSection_ThreadPictureRequest(plantSection_ThreadPictureId));
        }

        #endregion

        #endregion

        #region 养殖

        #region Aquaculture

        public static int CreateAquaculture(Aquaculture aquaculture)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildAddAquacultureRequest(aquaculture));
            return reply.Status;
        }
        public static Aquaculture GetAquaculture(int aquacultureId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetAquacultureRequest(aquacultureId)).Reply as Aquaculture;
        }
        public static EntityList GetAquacultureList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static void UpdateAquaculture(Aquaculture aquaculture)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildUpdateAquacultureRequest(aquaculture));
        }
        public static void DeleteAquaculture(int aquacultureId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteAquacultureRequest(aquacultureId));
        }

        #endregion

        #region AquacultureCategory

        public static int CreateAquacultureCategory(AquacultureCategory aquacultureCategory)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildAddAquacultureCategoryRequest(aquacultureCategory));
            return reply.Status;
        }
        public static AquacultureCategory GetAquacultureCategory(int aquacultureCategoryId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetAquacultureCategoryRequest(aquacultureCategoryId)).Reply as AquacultureCategory;
        }
        public static EntityList GetAquacultureCategoryList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static int UpdateAquacultureCategory(AquacultureCategory aquacultureCategory)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildUpdateAquacultureCategoryRequest(aquacultureCategory));
            return reply.Status;
        }
        public static void DeleteAquacultureCategory(int aquacultureCategoryId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteAquacultureCategoryRequest(aquacultureCategoryId));
        }

        #endregion

        #region AquacultureAppCategory

        public static int CreateAquacultureAppCategory(AquacultureAppCategory aquacultureAppCategory)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildAddAquacultureAppCategoryRequest(aquacultureAppCategory));
            return reply.Status;
        }
        public static AquacultureAppCategory GetAquacultureAppCategory(int aquacultureAppCategoryId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetAquacultureAppCategoryRequest(aquacultureAppCategoryId)).Reply as AquacultureAppCategory;
        }
        public static EntityList GetAquacultureAppCategoryList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static int UpdateAquacultureAppCategory(AquacultureAppCategory aquacultureAppCategory)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildUpdateAquacultureAppCategoryRequest(aquacultureAppCategory));
            return reply.Status;
        }
        public static void DeleteAquacultureAppCategory(int aquacultureAppCategoryId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteAquacultureAppCategoryRequest(aquacultureAppCategoryId));
        }

        #endregion

        #region AquacultureMethod

        public static int CreateAquacultureMethod(AquacultureMethod entity)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildAddAquacultureMethodRequest(entity));
            return reply.Status;
        }
        public static AquacultureMethod GetAquacultureMethod(int entityId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetAquacultureMethodRequest(entityId)).Reply as AquacultureMethod;
        }
        public static EntityList GetAquacultureMethodList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static int UpdateAquacultureMethod(AquacultureMethod entity)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildUpdateAquacultureMethodRequest(entity));
            return reply.Status;
        }
        public static void DeleteAquacultureMethod(int entityId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteAquacultureMethodRequest(entityId));
        }

        #endregion

        #region AquacultureAttribute

        public static int CreateAquacultureAttribute(AquacultureAttribute entity)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildAddAquacultureAttributeRequest(entity));
            return reply.Status;
        }
        public static AquacultureAttribute GetAquacultureAttribute(int entityId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetAquacultureAttributeRequest(entityId)).Reply as AquacultureAttribute;
        }
        public static EntityList GetAquacultureAttributeList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static int UpdateAquacultureAttribute(AquacultureAttribute entity)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildUpdateAquacultureAttributeRequest(entity));
            return reply.Status;
        }
        public static void DeleteAquacultureAttribute(int entityId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteAquacultureAttributeRequest(entityId));
        }

        #endregion

        #region AquacultureGuiGe

        public static int CreateAquacultureGuiGe(AquacultureGuiGe entity)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildAddAquacultureGuiGeRequest(entity));
            return reply.Status;
        }
        public static AquacultureGuiGe GetAquacultureGuiGe(int entityId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetAquacultureGuiGeRequest(entityId)).Reply as AquacultureGuiGe;
        }
        public static EntityList GetAquacultureGuiGeList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static int UpdateAquacultureGuiGe(AquacultureGuiGe entity)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildUpdateAquacultureGuiGeRequest(entity));
            return reply.Status;
        }
        public static void DeleteAquacultureGuiGe(int entityId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteAquacultureGuiGeRequest(entityId));
        }

        #endregion

        #region AquacultureKebie

        public static int CreateAquacultureKebie(AquacultureKebie aquacultureKebie)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildAddAquacultureKebieRequest(aquacultureKebie));
            return reply.Status;
        }
        public static AquacultureKebie GetAquacultureKebie(int aquacultureKebieId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetAquacultureKebieRequest(aquacultureKebieId)).Reply as AquacultureKebie;
        }
        public static EntityList GetAquacultureKebieList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static int UpdateAquacultureKebie(AquacultureKebie aquacultureKebie)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildUpdateAquacultureKebieRequest(aquacultureKebie));
            return reply.Status;
        }
        public static void DeleteAquacultureKebie(int aquacultureKebieId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteAquacultureKebieRequest(aquacultureKebieId));
        }

        #endregion

        #region AquacultureSection_Post

        public static void CreateAquacultureSection_Post(AquacultureSection_Post aquacultureSection_Post)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildAddAquacultureSection_PostRequest(aquacultureSection_Post));
        }
        public static AquacultureSection_Post GetAquacultureSection_Post(int aquacultureSection_PostId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetAquacultureSection_PostRequest(aquacultureSection_PostId)).Reply as AquacultureSection_Post;
        }
        public static EntityList GetAquacultureSection_PostList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static void UpdateAquacultureSection_Post(AquacultureSection_Post aquacultureSection_Post)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildUpdateAquacultureSection_PostRequest(aquacultureSection_Post));
        }
        public static void DeleteAquacultureSection_Post(int aquacultureSection_PostId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteAquacultureSection_PostRequest(aquacultureSection_PostId));
        }

        #endregion

        #region AquacultureSection_PostPicture

        public static void CreateAquacultureSection_PostPicture(AquacultureSection_PostPicture aquacultureSection_PostPicture)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildAddAquacultureSection_PostPictureRequest(aquacultureSection_PostPicture));
        }
        public static AquacultureSection_PostPicture GetAquacultureSection_PostPicture(int aquacultureSection_PostPictureId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetAquacultureSection_PostPictureRequest(aquacultureSection_PostPictureId)).Reply as AquacultureSection_PostPicture;
        }
        public static EntityList GetAquacultureSection_PostPictureList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static void UpdateAquacultureSection_PostPicture(AquacultureSection_PostPicture aquacultureSection_PostPicture)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildUpdateAquacultureSection_PostPictureRequest(aquacultureSection_PostPicture));
        }
        public static void DeleteAquacultureSection_PostPicture(int aquacultureSection_PostPictureId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteAquacultureSection_PostPictureRequest(aquacultureSection_PostPictureId));
        }

        #endregion

        #region AquacultureSection_Section

        public static int CreateAquacultureSection_Section(AquacultureSection_Section aquacultureSection_Section)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildAddAquacultureSection_SectionRequest(aquacultureSection_Section));
            return reply.Status;
        }
        public static AquacultureSection_Section GetAquacultureSection_Section(int aquacultureSection_SectionId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetAquacultureSection_SectionRequest(aquacultureSection_SectionId)).Reply as AquacultureSection_Section;
        }
        public static EntityList GetAquacultureSection_SectionList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static int UpdateAquacultureSection_Section(AquacultureSection_Section aquacultureSection_Section)
        {
            BaseReply reply = entityEngine.ExecuteRequest(RequestHelper.BuildUpdateAquacultureSection_SectionRequest(aquacultureSection_Section));
            return reply.Status;
        }
        public static void DeleteAquacultureSection_Section(int aquacultureSection_SectionId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteAquacultureSection_SectionRequest(aquacultureSection_SectionId));
        }

        #endregion

        #region AquacultureSection_Thread

        public static void CreateAquacultureSection_Thread(AquacultureSection_Thread aquacultureSection_Thread)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildAddAquacultureSection_ThreadRequest(aquacultureSection_Thread));
        }
        public static AquacultureSection_Thread GetAquacultureSection_Thread(int aquacultureSection_ThreadId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetAquacultureSection_ThreadRequest(aquacultureSection_ThreadId)).Reply as AquacultureSection_Thread;
        }
        public static EntityList GetAquacultureSection_ThreadList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static void UpdateAquacultureSection_Thread(AquacultureSection_Thread aquacultureSection_Thread)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildUpdateAquacultureSection_ThreadRequest(aquacultureSection_Thread));
        }
        public static void DeleteAquacultureSection_Thread(int aquacultureSection_ThreadId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteAquacultureSection_ThreadRequest(aquacultureSection_ThreadId));
        }

        #endregion

        #region AquacultureSection_ThreadPicture

        public static void CreateAquacultureSection_ThreadPicture(AquacultureSection_ThreadPicture aquacultureSection_ThreadPicture)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildAddAquacultureSection_ThreadPictureRequest(aquacultureSection_ThreadPicture));
        }
        public static AquacultureSection_ThreadPicture GetAquacultureSection_ThreadPicture(int aquacultureSection_ThreadPictureId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetAquacultureSection_ThreadPictureRequest(aquacultureSection_ThreadPictureId)).Reply as AquacultureSection_ThreadPicture;
        }
        public static EntityList GetAquacultureSection_ThreadPictureList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static void UpdateAquacultureSection_ThreadPicture(AquacultureSection_ThreadPicture aquacultureSection_ThreadPicture)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildUpdateAquacultureSection_ThreadPictureRequest(aquacultureSection_ThreadPicture));
        }
        public static void DeleteAquacultureSection_ThreadPicture(int aquacultureSection_ThreadPictureId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteAquacultureSection_ThreadPictureRequest(aquacultureSection_ThreadPictureId));
        }

        #endregion

        #region AquacultureAndAppCategoryRelation

        public static void CreateAquacultureAndAppCategoryRelation(AquacultureAndAppCategoryRelation aquacultureAndAppCategoryRelation)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildAddAquacultureAndAppCategoryRelationRequest(aquacultureAndAppCategoryRelation));
        }
        public static EntityList GetAquacultureAndAppCategoryRelationList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static void UpdateAquacultureAndAppCategoryRelation(AquacultureAndAppCategoryRelation aquacultureAndAppCategoryRelation)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildUpdateAquacultureAndAppCategoryRelationRequest(aquacultureAndAppCategoryRelation));
        }
        public static void DeleteAquacultureAndAppCategoryRelation(int entityId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteAquacultureAndAppCategoryRelationRequest(entityId));
        }

        #endregion

        #region AquacultureFeedback

        public static void CreateAquacultureFeedback(AquacultureFeedback entity)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildAddAquacultureFeedbackRequest(entity));
        }
        public static AquacultureFeedback GetAquacultureFeedback(int entityId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetAquacultureFeedbackRequest(entityId)).Reply as AquacultureFeedback;
        }
        public static EntityList GetAquacultureFeedbackList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static void UpdateAquacultureFeedback(AquacultureFeedback entity)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildUpdateAquacultureFeedbackRequest(entity));
        }
        public static void DeleteAquacultureFeedback(int entityId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteAquacultureFeedbackRequest(entityId));
        }

        #endregion

        #region CompanyFishery

        public static void CreateCompanyFishery(CompanyFishery companyFishery)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildAddCompanyFisheryRequest(companyFishery));
        }
        public static CompanyFishery GetCompanyFishery(int companyFisheryId)
        {
            return entityEngine.ExecuteRequest(RequestHelper.BuildGetCompanyFisheryRequest(companyFisheryId)).Reply as CompanyFishery;
        }
        public static EntityList GetCompanyFisheryList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static void UpdateCompanyFishery(CompanyFishery companyFishery)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildUpdateCompanyFisheryRequest(companyFishery));
        }
        public static void DeleteCompanyFishery(int companyFisheryId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteCompanyFisheryRequest(companyFisheryId));
        }

        #endregion

        #region CompanyFisheryAndAppCategoryRelation

        public static void CreateCompanyFisheryAndAppCategoryRelation(CompanyFisheryAndAppCategoryRelation companyFisheryAndAppCategoryRelation)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildAddCompanyFisheryAndAppCategoryRelationRequest(companyFisheryAndAppCategoryRelation));
        }
        public static EntityList GetCompanyFisheryAndAppCategoryRelationList(BaseRequestBinder requestBinder)
        {
            return entityEngine.ExecuteRequest(requestBinder).Reply as EntityList;
        }
        public static void UpdateCompanyFisheryAndAppCategoryRelation(CompanyFisheryAndAppCategoryRelation companyFisheryAndAppCategoryRelation)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildUpdateCompanyFisheryAndAppCategoryRelationRequest(companyFisheryAndAppCategoryRelation));
        }
        public static void DeleteCompanyFisheryAndAppCategoryRelation(int huamuId)
        {
            entityEngine.ExecuteRequest(RequestHelper.BuildDeleteCompanyFisheryAndAppCategoryRelationRequest(huamuId));
        }

        #endregion

        #endregion

        //INSERT POSITION
    }
}